package com.aaa.behind.service.impl;

import com.aaa.behind.dao.GBrandMapper;
import com.aaa.behind.service.IGBrandService;
import com.aaa.entity.BrandMap;
import com.aaa.entity.GBrand;
import com.aaa.entity.GSort;
import com.aaa.util.PageInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 品牌 服务实现类
 * </p>
 *
 * @author whj
 * @since 2023-01-30
 */
@Service
public class GBrandServiceImpl extends ServiceImpl<GBrandMapper, GBrand> implements IGBrandService {



    @Autowired
    private GBrandMapper gBrandMapper;

    @Override
    public IPage findBrandsWithCondition(PageInfo page, BrandMap map) {
        IPage brandsWithCondition = gBrandMapper.findBrandsWithCondition(page, map);
        return brandsWithCondition;
    }

    @Override
    public List<GBrand> findAllBrands() {
        return gBrandMapper.findAllBrands();
    }

    @Override
    public List<GSort> findAllSort() {
        return gBrandMapper.findAllSort();
    }
}
